<?php
/**
 * Introduction: 账户流水表  tarento_cash_flow
 */

namespace Common\Model;


use Think\Model;

class TarentoCashFlowModel extends Model
{
    //定义数据库连接信息
    protected $connection;

    //定义表名
    protected $tableName = 'tarento_cash_flow';

    /**
     * 初始化
     */
    public function _initialize()
    {

        $this->connection = C('Databaese');

    }

    /**
     * 获取列表
     */
    public function getlist($member_id,$num,$limit){
        $list = $this->where("member_id=$member_id")->field("price,description,create_time")->limit($num,$limit)->select();

        return $list;
    }


}